package day4;
//return方法
public class Demo3 {
    public static void main(String[] args) {
        System.out.println("执行方法之前");
        demo();
        System.out.println("执行方法之后");

    }
    public static void demo(){
        System.out.println("循环开始");
        one:
        for (int k=0;k<5;k++){
            System.out.println("K:"+k);
            two:
            for (int j=0;j<5;j++){
                System.out.println("j:"+j);
                three:
                for (int i=0;i<10;i++){
                    System.out.println("i:"+i);
                    if (i==6) break one;
                }
                System.out.println("循环结束");
            }
        }
    }
}
